package com.srd.phone.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class TabMine {

    public String available;
    public String frozenfund;
    public String order;
    public String penmoney;
    public String scRecord;
    public String sinves;
    public String sprofit;
    public String sumreco;
    public String total;

    public static TabMine parse(String data) {
        TabMine info = new TabMine();
        try {
            JSONObject jsonObj = new JSONObject(data);
            info.available = jsonObj.optString("available", "0");
            info.frozenfund = jsonObj.optString("frozenfund", "0");
            info.penmoney = jsonObj.optString("penmoney", "0");
            info.scRecord = jsonObj.optString("scRecord", "0");
            info.sinves = jsonObj.optString("sinves", "0");
            info.sprofit = jsonObj.optString("sprofit", "0");
            info.sumreco = jsonObj.optString("sumreco", "0");
            info.total = jsonObj.optString("total", "0");
            info.order = jsonObj.optString("order", "0");

        } catch (JSONException e) {
            e.printStackTrace();
        }
        return info;
    }
}
